import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import vuetify from './plugins/vuetify'
//引入本地mdi
import '@mdi/font/css/materialdesignicons.css'

Vue.config.productionTip = false

//以下代码导入了api系统到原型链
import axios from 'axios'
Vue.prototype.$axios = axios
import api from '@/api/api'
Vue.prototype.$api = api
import { VueAxios } from './utils/httpRequest/request'
Vue.use(VueAxios)
    //以上

//以下代码导入部分工具到原型链
import Message from './utils/prototype/Notifications/Notifications.js'
Vue.prototype.$Message = Message;
//以上


// 富文本支持
import CKEditor from "@ckeditor/ckeditor5-vue2";
Vue.use(CKEditor);
//以上


import fileService from '@/utils/resource/index.js';
Vue.prototype.$fileService = fileService;


//以下代码引入echarts并将echarts加入原型链
import * as echarts from "echarts";
Vue.prototype.$echarts = echarts;
//以上

//以下代码将iso-a3到国家名的双射加入到原型链
import mapper from '@/utils/mapper/mapper';
let Mapper = mapper();
Vue.prototype.$NameToIso3Mapper = Mapper[0];
Vue.prototype.$NameToIso2Mapper = Mapper[1];
//以上

//以下代码将数字千分分割方法加入原型链
import formatNumber from '@/utils/prototype/FormatNumber.js';
Vue.prototype.$formatNumber = formatNumber;
//以上

new Vue({
    router,
    store,
    vuetify,
    render: h => h(App),
}).$mount('#app')